



<div class="content">
    
    <!--*****************  RIGHT  *****************-->
    <div class="columnRight">
        <div class="content">
            <div class="contentCenter">
                <div class="content">

<div class="workflows view">
<h2><?php  __('Workflow');?></h2>
<table class="showFields">
		<tr><th><?php __('Id'); ?></th>
		<td>
			<?php echo $workflow['Workflow']['id']; ?>
		</td></tr>
		<tr><th><?php __('Title'); ?></th>
		<td>
			<?php echo $workflow['Workflow']['title']; ?>
		</td></tr>
		<tr><th><?php __('Branch'); ?></th>
		<td>
			<?php echo $workflow['Workflow']['branch']; ?>
		</td></tr>
		<tr><th><?php __('Costcenter'); ?></th>
		<td>
			<?php echo $workflow['Workflow']['costcenter']; ?>
		</td></tr>
		<tr><th><?php __('Tool'); ?></th>
		<td>
			<?php echo $this->Html->link($workflow['Tool']['title'], array('controller' => 'tools', 'action' => 'view', $workflow['Tool']['id'])); ?>
		</td></tr>
		<tr><th><?php __('Description'); ?></th>
		<td>
			<?php echo $workflow['Workflow']['description']; ?>
		</td></tr>
		<tr><th><?php __('Created'); ?></th>
		<td>
			<?php echo $workflow['Workflow']['created']; ?>
		</td></tr>
		<tr><th><?php __('Modified'); ?></th>
		<td>
			<?php echo $workflow['Workflow']['modified']; ?>
		</td></tr>
	</table>
</div> 
                    
                </div>
            </div>
        </div>
    </div>
<!--*****************  LEFT  *****************-->
    <div class="columnLeft">
        <div class="content">
            <!--*****************  MENU  *****************-->
            <div class="contentMenu">

                <div class="contentMenuItems">
                    <ul>
                        <li class="contentMenuTitle">Actions</li>
                        		<li><?php echo $this->Html->link(__('Edit Workflow', true), array('action' => 'edit', $workflow['Workflow']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Workflow', true), array('action' => 'delete', $workflow['Workflow']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $workflow['Workflow']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Workflows', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Workflow', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tools', true), array('controller' => 'tools', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tool', true), array('controller' => 'tools', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Powerdelegations', true), array('controller' => 'powerdelegations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Powerdelegation', true), array('controller' => 'powerdelegations', 'action' => 'add')); ?> </li>
                        <li class="contentMenuBottom"></li>
                    </ul>
                </div>

            </div>
        </div>
    </div>

</div>
<div class="clear"></div>

<div class="contentCenter">
    <h2 class="showNextDiv pointer">Related</h2>
    <div class="isHidden">

<div class="related">
	<h3><?php __('Related Powerdelegations');?></h3>
	<?php if (!empty($workflow['Powerdelegation'])):?>
	<table class="formstatus"><thead>
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Amount From'); ?></th>
		<th><?php __('Amount To'); ?></th>
		<th><?php __('Level Nb'); ?></th>
		<th><?php __('Procurement Validator'); ?></th>
		<th><?php __('Workflow Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
        </tr></thead><tbody>
	<?php
		$i = 0;
		foreach ($workflow['Powerdelegation'] as $powerdelegation):
			$class = null;
			if ($i++ % 2 == 0) {
			$class = ' class="pair"';
                        }else{$class = ' class="impair"';}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $powerdelegation['id'];?></td>
			<td><?php echo $powerdelegation['amount_from'];?></td>
			<td><?php echo $powerdelegation['amount_to'];?></td>
			<td><?php echo $powerdelegation['level_nb'];?></td>
			<td><?php echo $powerdelegation['procurement_validator'];?></td>
			<td><?php echo $powerdelegation['workflow_id'];?></td>
			<td><?php echo $powerdelegation['created'];?></td>
			<td><?php echo $powerdelegation['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'powerdelegations', 'action' => 'view', $powerdelegation['id']),array('class'=>'details')); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'powerdelegations', 'action' => 'edit', $powerdelegation['id']),array('class'=>'edit')); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'powerdelegations', 'action' => 'delete', $powerdelegation['id']), array('class'=>'FormDelete'), sprintf(__('Are you sure you want to delete # %s?', true), $powerdelegation['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody></table>
<?php endif; ?>

	<div class="showNextBtn"><?php echo $this->Html->link(__('New Powerdelegation', true), array('controller' => 'powerdelegations', 'action' => 'add'));?></div>
</div>
    </div>
</div>